﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using MVlog.Core;
using MVlog.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace MVlog.Application
{
    [AutoMap(typeof(Comments))]
    public class GetCommentsInput : PagedAndSortedInputDto, IShouldNormalize
    {
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime DESC";
            }
        }
    }
}
